import request from '@/utils/request'

// 查询餐馆菜品分类列表
export function listResdishcategory(query) {
  return request({
    url: '/system/resdishcategory/list',
    method: 'get',
    params: query
  })
}

// 查询餐馆菜品分类详细
export function getResdishcategory(dishCategoryId) {
  return request({
    url: '/system/resdishcategory/' + dishCategoryId,
    method: 'get'
  })
}

// 新增餐馆菜品分类
export function addResdishcategory(data) {
  return request({
    url: '/system/resdishcategory',
    method: 'post',
    data: data
  })
}

// 修改餐馆菜品分类
export function updateResdishcategory(data) {
  return request({
    url: '/system/resdishcategory',
    method: 'put',
    data: data
  })
}

// 删除餐馆菜品分类
export function delResdishcategory(dishCategoryId) {
  return request({
    url: '/system/resdishcategory/' + dishCategoryId,
    method: 'delete'
  })
}
